<!-- $Id: agency_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<form method="post" action="" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th> <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />
          <a href="javascript:listTable.sort('rid'); ">{$lang.record_id}</a>{$sort_agency_id} </th>
      <th>{$lang.agency_desc}</th>
           <th>红包</th>
             <th>连续签到天数</th>
      <th>开始时间</th>
       <th>结束时间</th>

      <th>{$lang.handler}</th>
    </tr>
    {foreach from=$agency_list item=agency}
    <tr>
      <td><input type="checkbox" name="checkboxes[]" value="{$agency.rid}" />
        {$agency.rid}</td>
      <td class="first-cell" align="center">
        {$agency.reg_rule|escape:html}    </td>
      <td align="center">{$agency.bonus_name|nl2br}</td>
            <td align="center">{$agency.days|nl2br}</td>
       <td align="center">{$agency.begintime|nl2br}</td>
        <td align="center">{$agency.endtime|nl2br}</td>
      <td align="center">
             <a href="sign.php?act=signuser&rid={$agency.rid}" title="{$lang.edit}">查看签到会员</a> |   <a href="sign.php?act=edit&id={$agency.rid}" title="{$lang.edit}">{$lang.edit}</a> |
        <a href="javascript:;" onclick="listTable.remove({$agency.rid}, '{$lang.drop_confirm}')" title="{$lang.remove}">{$lang.remove}</a>      </td>
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="4">{$lang.no_records}</td></tr>
    {/foreach}
  </table>
<table id="page-table" cellspacing="0">
  <tr>
    <td>
      <input name="remove" type="submit" id="btnSubmit" value="{$lang.drop}" class="button" disabled="true" />
      <input name="act" type="hidden" value="batch" />
    </td>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>

{if $full_page}
</div>
</form>

<script type="text/javascript" language="javascript">
  <!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
      // 开始检查订单
      startCheckOrder();
  }
  {/literal}
  //-->
</script>
{include file="pagefooter.htm"}
{/if}